package domd3;

public class Main {
    public String setstring (String str) {
        boolean[] flag=new boolean[127];
        StringBuffer str1=new StringBuffer();
        for(int i=0;i<str.length();i++){
                char ch1=str.charAt(i);
                if(flag[ch1]==false){
                    str1.append(ch1);
                    flag[ch1]=true;
            }
        }
        return str1.toString();
    }
    public static void main(String[] args) {
        Main main= new Main();
        System.out.println(main.setstring("hehllo"));
    }
}
